package com.oa.entity;

import java.util.HashSet;
import java.util.Set;
/**
 *版块
 */
public class Forum {

	private String forumId;// 版块ID
	private String forumName;// 版块名
	private String forumDescription;// 版块描述
	private int topicCount; // 主题数量
	private int articleCount; // 文章数量（主题+回复）
	private Topic lastTopic; // 最后发表的主题

	// 版块-->主题 1:N
	private Set<Topic> topics = new HashSet<Topic>();

	public String getForumId() {
		return forumId;
	}

	public void setForumId(String forumId) {
		this.forumId = forumId;
	}

	public String getForumName() {
		return forumName;
	}

	public void setForumName(String forumName) {
		this.forumName = forumName;
	}

	public String getForumDescription() {
		return forumDescription;
	}

	public void setForumDescription(String forumDescription) {
		this.forumDescription = forumDescription;
	}

	public int getTopicCount() {
		return topicCount;
	}

	public void setTopicCount(int topicCount) {
		this.topicCount = topicCount;
	}

	public int getArticleCount() {
		return articleCount;
	}

	public void setArticleCount(int articleCount) {
		this.articleCount = articleCount;
	}

	public Topic getLastTopic() {
		return lastTopic;
	}

	public void setLastTopic(Topic lastTopic) {
		this.lastTopic = lastTopic;
	}

	public Set<Topic> getTopics() {
		return topics;
	}

	public void setTopics(Set<Topic> topics) {
		this.topics = topics;
	}

}
